/**
 * @desc 客户信息管理
 * @param
 * @author zhoujie
 * @date 2022/11/21 14:32:10
*/


import request from '@/assets/common/js/utils/request';
/*------------------------获取机型---------------------------------*/
//获取机型列表
export function getKhxxglList() {
    return request({
        url: 'customerinfo/getlist',
        method: 'get',
    });
}

export function getallbyname() {
    return request({
        url: 'customerinfo/getallbyname',
        method: 'get',
    });
}
export function provincearea(data) {
    return request({
        url: 'provincearea/getareabyparentid',
        method: 'get',
        params:data
    });
}

export function customerinfoCreate(data) {
    return request({
        url: 'customerinfo/create',
        method: 'post',
        data: data,
    });
}

//修改
export function updatecustomerinfo(data) {
    return request({
        url: `customerinfo/update/${data.id}`,
        method: 'put',
        data: data,
    });
}
export function customerinfo(data) {
    return request({
        url: 'customerinfo/get',
        method: 'get',
        params: data,
    });
}
export function deletecustomerinfo(data) {
    return request({
        url: 'customerinfo/delete',
        method: 'DELETE',
        params: data,
    });
}


